package nodes.exprnodes.variables;

import nodes.exprnodes.ExprNode;
import visitors.Visitor;

public final class IndexNode extends VariableNode
{
    public String id;
    public ExprNode expr;

    public IndexNode(String id, ExprNode expr)
    {
        this.id = id;
        this.expr = expr;
    }

    @Override
    public Object accept(Visitor v)
    {
	return v.visit(this);
    }
}